package com.sptpc.learnspring.controller.request;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Getter
@Setter
@ToString
public class NewOrderRequest {
    @NotNull
    @Size(min = 1, message = "至少选择一种饮品")
    private List<OrderItem> items;
    @NotBlank(message = "用户名不能为空")
    private String customer;
}
